package com.ruoyi.siyun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.siyun.mapper.SyCourseVideoMapper;
import com.ruoyi.siyun.domain.SyCourseVideo;
import com.ruoyi.siyun.service.ISyCourseVideoService;

/**
 * 课程视频管理Service业务层处理
 * 
 * @author CX330
 * @date 2024-12-25
 */
@Service
public class SyCourseVideoServiceImpl implements ISyCourseVideoService 
{
    @Autowired
    private SyCourseVideoMapper syCourseVideoMapper;

    /**
     * 查询课程视频管理
     * 
     * @param videoId 课程视频管理主键
     * @return 课程视频管理
     */
    @Override
    public SyCourseVideo selectSyCourseVideoByVideoId(Long videoId)
    {
        return syCourseVideoMapper.selectSyCourseVideoByVideoId(videoId);
    }

    /**
     * 查询课程视频管理列表
     * 
     * @param syCourseVideo 课程视频管理
     * @return 课程视频管理
     */
    @Override
    public List<SyCourseVideo> selectSyCourseVideoList(SyCourseVideo syCourseVideo)
    {
        return syCourseVideoMapper.selectSyCourseVideoList(syCourseVideo);
    }

    /**
     * 新增课程视频管理
     * 
     * @param syCourseVideo 课程视频管理
     * @return 结果
     */
    @Override
    public int insertSyCourseVideo(SyCourseVideo syCourseVideo)
    {
        return syCourseVideoMapper.insertSyCourseVideo(syCourseVideo);
    }

    /**
     * 修改课程视频管理
     * 
     * @param syCourseVideo 课程视频管理
     * @return 结果
     */
    @Override
    public int updateSyCourseVideo(SyCourseVideo syCourseVideo)
    {
        return syCourseVideoMapper.updateSyCourseVideo(syCourseVideo);
    }

    /**
     * 批量删除课程视频管理
     * 
     * @param videoIds 需要删除的课程视频管理主键
     * @return 结果
     */
    @Override
    public int deleteSyCourseVideoByVideoIds(Long[] videoIds)
    {
        return syCourseVideoMapper.deleteSyCourseVideoByVideoIds(videoIds);
    }

    /**
     * 删除课程视频管理信息
     * 
     * @param videoId 课程视频管理主键
     * @return 结果
     */
    @Override
    public int deleteSyCourseVideoByVideoId(Long videoId)
    {
        return syCourseVideoMapper.deleteSyCourseVideoByVideoId(videoId);
    }
}
